package cn.edu.fzu.homemaking.company.api;

import cn.edu.fzu.homemaking.company.domain.enums.LabelStatusEnum;
import cn.edu.fzu.homemaking.web.Result;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wanjie
 * @version 1.0
 */
@FeignClient(name = "sys")
public interface SysApi {
    @GetMapping("/api/sys/label/list")
    Result listLabels(@RequestParam("name") String name, @RequestParam("status") LabelStatusEnum status);


    @GetMapping("/api/sys/company/list")
    Result listCompany(@RequestParam("name") String name, @RequestParam("provinceId") Long provinceId,
                       @RequestParam("cityId") Long cityId, @RequestParam("areaId") Long areaId,
                       @RequestParam("labelId") Long labelId, @RequestParam("pageNum") Integer pageNum,
                       @RequestParam("pageSize") Integer pageSize);

    @GetMapping("/api/sys/auth/label/getByCompany")
    Result getByCompanyId(@RequestParam("companyId") Long companyId, @RequestParam("pageNum") Integer pageNum,
                          @RequestParam("pageSize") Integer pageSize);
}
